package cn.v2tila.rsosa.student.service;

import cn.v2tila.rsosa.student.entity.ContactsEntity;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author v2tila on 0:25 2019/4/7
 */
@Service
public interface ContactsService {
    ContactsEntity saveAndFlush(ContactsEntity contactsEntity);

    boolean existsByUniqueIdAndContactUniqueId(String uniqueId, String contactUniqueId);

    List<ContactsEntity> findByUniqueId(String uniqueId);

    ContactsEntity findByUniqueIdAndContactUniqueId(String uniqueId, String contactUniqueId);
}

